﻿using Abp.Domain.Entities.Auditing;
using FwProject.Authorization.Users;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace FwProject.ShoppingMall.Com
{
    /// <summary>
    /// 订单结算表
    /// </summary>
    [Table("settlement_supplier")]
    public class SettlementSupplier : FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 供应商id
        /// </summary>
        public Guid SupplierId { get; set; }

        /// <summary>
        /// 结算时间
        /// </summary>
        public DateTime SettlementTime { get; set; }

        /// <summary>
        /// 结算金额
        /// </summary>
        public decimal SettlementPrice { get; set; } = 0m;

        /// <summary>
        /// 结算优惠金额
        /// </summary>
        public decimal SettlementPreferentia { get; set; } = 0m;

        /// <summary>
        /// 结算实际金额
        /// </summary>
        public decimal SettlementAmount { get; set; } = 0m;

        /// <summary>
        /// 实际结算人编号
        /// </summary>
        public long SettlementId { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public ExamineStatus ExamineStatus { get; set; } = ExamineStatus.未审核;
    }

    public enum ExamineStatus: byte
    {
        未审核,
        已审核
    }
}
